package flc.ast;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import androidx.annotation.Nullable;

import java.util.concurrent.RunnableFuture;

import stark.common.basic.base.BaseSplashActivity;

/**
 * <pre>
 *     author : cfans
 *     time   : 2021/07/01
 *     desc   :
 *     version: 1.0
 * </pre>
 */
public class SplashActivity extends BaseSplashActivity {
    private static final int DELAY_TIME  = 30;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                goToMainActivity();
            }
        },DELAY_TIME);
    }

    @Override
    protected int getSplashLogoId() {
        return R.mipmap.ic_logo;
    }

    @Override
    protected void goToMainActivity() {
        startActivity(new Intent(this,HomeActivity.class));
        super.goToMainActivity();
    }
}
